Creative MovieFX v2 Forum


box Creative MovieFX v2
Creative MovieFX v2 is a Flash effects component that offers the ability to apply effects on any movie clips. From the user friendly interface it?s very easy to browse the over 280 predefined effects gallery and apply them on the three transition types available (In effects, Out effects, and Wait effects) without writing a line of code.

Find out more about Creative MovieFX v2

Thread: internalId = 0 [class MovieFXMain]

title left
User Details
message
title right
David Coultham

post date:
2011-08-13 05:37:11
Wonder if you might help.rnrnI am creating a game/resource for a client:rn>The game is essentially a calendar which will trigger a set of events based on the date input by the user. rn>The game is in AS3 using Adobe Flash CS5.5.rn>The triggered events each contain are separate compiled swf file which is loaded into a movie clip by a batch loader and then added to the stage at trigger time. Each clip show pictures and sounds for a given event on the calendar.rn>The client wishes to utilise several images per event, so I have these on looped timeline in Flash, with the MovieFX v2 triggering a transition for each image.rn>All works fine until I unload the swf clip from the stage. “movieClip.removeChildAt(0);”rn>I now subsequently get continual Warnings:rninternalId = 0 [class MovieFXMain] Warning: 0 Target object not on stage. Unable to determine document framerate.rn>Why is this happening? rn>Is there a way to de-activate/remove the MovieFX class code when I remove the swf clip? rn>and/or is there a way to wrap the MovieFX class into for instance an if statement to validate whether it’s target is null and therefore not to trigger.rn>and/or is there a sequence I can initiate from my main movie clip to remove the appropriate event listeners etc to avoid these errors.rnrnThanks in advancernrnrn
Andrei Rinciog [Extend Studio]

post date:
2011-08-16 10:32:30
Hello David,

I presume you are loading the SWF files in your main SWF using the Loader class or a child class of it. Try to use the "unloadAndStop()" method of the Loader class. It should stop any AS execution from the loaded SWF file and thus get rid of the warnings.

Call that method before you remove the Loader from the stage.

Regards,
Andrei Rinciog